import type {
  AxiosRequestConfig,
  AxiosResponse,
  InternalAxiosRequestConfig
} from 'axios'
export interface WJInterceptors<T = AxiosResponse> {
  requestSuccessInterceptors?: (
    config: InternalAxiosRequestConfig
  ) => InternalAxiosRequestConfig
  requestErrorInterceptors?: (err: any) => any
  responseSuccessInterceptors?: (res: T) => T
  responseErrorInterceptors?: (err: any) => any
}
export interface WJAxiosRequestConfig<T = AxiosResponse>
  extends AxiosRequestConfig {
  interceptors?: WJInterceptors<T>
  isShowLoading?: boolean
}
